package com.android.music.prolyric;

import java.util.List;
import java.util.Map;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView.FindListener;
import android.widget.SimpleAdapter;
import android.widget.TextView;

public class SimpleAdapterArtist extends SimpleAdapter
{
	int colorArtist, colorCount;
	public SimpleAdapterArtist(Context context,List<? extends Map<String, ?>> data, int resource, String[] from,int[] to) 
	{
		super(context, data, resource, from, to);
		
	}
	
	public SimpleAdapterArtist(Context context,List<? extends Map<String, ?>> data, int resource, String[] from,int[] to,int colorArtist,int colorCount) 
	{
		
		super(context, data, resource, from, to);
		this.colorArtist  = colorArtist;
		this.colorCount = colorCount;
		
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) 
	{
		View v = super.getView(position, convertView, parent);
		TextView tvArtist = (TextView)v.findViewById(R.id.tvArtistsName);
		TextView tvCount = (TextView)v.findViewById(R.id.tvArtistsCountSong);
		tvArtist.setTextColor(colorArtist);
		tvCount.setTextColor(colorCount);
		return v;
	}
	
	
	
	
	

}
